/**
 * 
 */
package com.gragra.wilsHandler;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 * @author Christoph Teichmann
 * 26.09.2013
 */
public class CountLines
{
	/**
	 * @param args
	 * @throws FileNotFoundException 
	 */
	public static void main(String[] args) throws IOException
	{
		BufferedReader br = new BufferedReader(new FileReader(args[0]));
		int lines = 0;
		while(br.readLine() != null)
		{++lines;}
		br.close();
		System.out.println(lines);
	}
}